<?php
    $connect=  mysql_connect('localhost', 'root','vertrigo');
            mysql_selectdb('tdc', $connect);

            // Check connection
          
            
            $name= $_POST['name'];
            
            $submit=$_POST['submit'];
            
            if(isset($submit))
            {
                $insert=  mysql_query("INSERT INTO `tdc`.`staffs` (`id`, `name`) VALUES (NULL, '$name')");
                header('location:index.php');
            }

